                     }, errorHandler: nil)
                 }
             }, errorHandler: nil)
+        } else {
+            rightBarButton.enabled = true
+            AlertCreator.singleActionAlert("Error", message: "Please fill all text fields.", actionTitle: "OK", actionHandler: nil)
         }
     }
     


    override func viewDidLoad() {
        super.viewDidLoad()
        
        setupViewForPurpose(viewPurpose)
        

        datePicker.locale = NSLocale(localeIdentifier: "PL")
        registerForKeyboardNotifications()
        self.navigationController?.navigationBar.translucent = false;
    }
    
    func determineViewPurpose() {
        if room == nil {
            viewPurpose = RoomDetailsPurpose.Create
        } else if room?.owner?.recordID == userRecordID && room?.didEnd == false {
            viewPurpose = RoomDetailsPurpose.Edit
        } else {
            viewPurpose = RoomDetailsPurpose.View
        }
    }
    
    deinit {
