created a model and login controller