fix a bug in the login page and  a message  error