split up a couple functions so the string compare for auth.login didn't happen every time a call was made