Created class login controller