tidy auth model