Fixed flash message error in UserController