added login method to auth for reuse everywhere