Logging users in now checks for validity.