changed authentication controller for api to raise an error if unable to authenticate user
changed authentication controller for api to raise an error if unable to authenticate user