some more models and user authentication with template