Changed application_controller to inherit from API; and removed protect_from_forgery
Made changes to routes.rb file
Added to controllers => app/controllers/api/vi/users_controller.rb