Login now queries database. Login page displays error message after failed login attempt.