login page now displays an error message when incorrect credentials are given + minor corrections