fixed a bug with login page