UserController Authentication improved