adding models and authentication