Fixed csrf token error if incorrect login details.
Merge remote-tracking branch 'origin/master'