Added update function in User.php (Model)