fixed a bug that after invalid login the login page got messed up.