Added templates, and model for login