add error messages to login page