added models and login controller