User login using database, with display errors.