diff --git a/media/js/profileSettings.js b/media/js/profileSettings.js
index d197767ac1318e3800e52a6a8bccb101d2bd67e8..12ac8ed151c3a3ca4206783dca3911b27b62ee6f 100644
--- a/media/js/profileSettings.js
+++ b/media/js/profileSettings.js
@@ -30,7 +30,7 @@ $(function () {
             'jobPositionID': $jobs.find('option:selected').val(),
             'departmentID':  $departments.find('option:selected').val(),
         }).always(_ => $submitButton.turnOn())
-            .done(Popup.success('Профиль успешно изменён!'))
-            .fail(Popup.error('Произошла ошибка'))
+            .done(() => Popup.success('Профиль успешно изменён!'))
+            .fail(() => Popup.error('Произошла ошибка'))
     });
-});
\ No newline at end of file
+});
diff --git a/~dev_rating/application/classes/Controller/Handler/Settings.php b/~dev_rating/application/classes/Controller/Handler/Settings.php
index 8ecd09275a7a04407f497a60cf03c561dcafe4af..e3d820673b345f0138af22dab6d194b213c02678 100644
--- a/~dev_rating/application/classes/Controller/Handler/Settings.php
+++ b/~dev_rating/application/classes/Controller/Handler/Settings.php
@@ -70,6 +70,8 @@ class Controller_Handler_Settings extends Controller_Handler
 
         if ($this->post->check())
             User::instance()->changeProfile($this->post->data());
+        else
+            throw HTTP_Exception::factory(400, 'Invalid parameters');
     }
 
     public function action_getDepartmentsList() {