Added login function to Instructor controller and view.