bug fix for login page