Added functional error messages to the log-in page.