Login now checks users in database