fix bug for login page