fixed bug for the login page