bug fixing for login page