             room?.restaurant = restaurant
         }
         
-        if let room = room {
+        if let room = room where textFieldsAreFilled() {
             cloudKitHelper.saveRoomRecord(room, completionHandler: {
                 if let userRecordID = self.userRecordID, let roomRecordID = room.recordID {
                     let userInRoom = UserInRoom(userRecordID: userRecordID, roomRecordID: roomRecordID, confirmationStatus: ConfirmationStatus.Accepted)

            limitSlider.value = Float(limit)
            privateSwitch.on = access == AccessType.Private ? true : false
        }
    }
    
    func createRoom() {


    override func viewDidLoad() {
        super.viewDidLoad()
        determineViewPurpose()
        
        guard let viewPurpose = viewPurpose else {
            return
        }
        
        setupViewForPurpose(viewPurpose)
        
