Updated user controller to authenticate user