corrected a bug on login page