Login works with users in database