fix a bug in login page