diff --git a/login_backend.php b/login_backend.php
index 831ee0f34a4ed2949577b1d4e9c8f4950fd8ba0b..3d1440a39b082c77d7157c8fe24b81e4df351fd6 100644
--- a/login_backend.php
+++ b/login_backend.php
@@ -14,7 +14,8 @@ if(isset($_POST['login']) && isset($_POST['password']) && !empty($_POST['login']
 			$_SESSION['login']=$user->getLogin();
 		}
 	}
-	catch(Exception $e){
+	catch(Exception $e)
+	{
 		try
 		{
 			$user= new SupervisorUser('login', $_POST['password']);
@@ -28,8 +29,8 @@ if(isset($_POST['login']) && isset($_POST['password']) && !empty($_POST['login']
 		}
 		
 	}
-	header('Location: index.php');
 	
+	header('Location: index.php');
 } else {
 	header('Location: index.php?err=1');
 }
\ No newline at end of file