Bug fix in login form

Hey I fixed a bug in your code. 

You should use my copy.