Fixed Flash message error in UserController