As you can see in these logs:
1st :
[28/Apr/2014 06:49:22] "POST /dashboard/ HTTP/1.1" 302 0
[28/Apr/2014 06:49:22] "GET /login/?next=/dashboard/ HTTP/1.1" 200 1536
2nd :
[28/Apr/2014 06:50:27] "POST /login/dashboard/ HTTP/1.1" 302 0
[28/Apr/2014 06:50:27] "GET /dashboard/ HTTP/1.1" 200 11292
The 1st time you are doing a POST request to /dashboard
url, which must be login_required. Hence, you get a 302 redirect to /login/?next=/dashboard/
The 2nd time you POST correctly on /login
. Hence you get logged in and redirected to /dashboard
Now you will have to debug and see why the first POST request is being made to /dashboard
rather than /login
?