changed the interface for the auth model