Corrected a few bugs in Catalyst Oauth2 controller