Created model and controller for user login