         let alertController = UIAlertController(title: "Create account", message: "You can create new account", preferredStyle: .Alert)
         
         let loginAction = UIAlertAction(title: "Create", style: .Default) { (_) in
-            let loginTextField = alertController.textFields![0] as UITextField
-            let passwordTextField = alertController.textFields![1] as UITextField
+            let nameTextField = alertController.textFields![0] as UITextField
+            let loginTextField = alertController.textFields![1] as UITextField
+            let passwordTextField = alertController.textFields![2] as UITextField
             
             self.firebase.createUser(loginTextField.text, password: passwordTextField.text) { (error: NSError!) in
                 

        }*/
    }
    
}

        
        
        let cancelAction = UIAlertAction(title: "Cancel", style: .Cancel) { (_) in }
        
        
        alertController.addTextFieldWithConfigurationHandler { (textField) in
            textField.placeholder = "Name"
        }
        
        alertController.addTextFieldWithConfigurationHandler { (textField) in
            textField.placeholder = "Email"
