main controller login check
users model and login controller logic