Updated sessions_controller.rb such that it is not able to handle HTTP requests that carry ..login.json and ...logout.json