add method for auth