                         let state: ValidationState = availability.email ? .OK : .Error
 
                         if !availability.email {
-                            self.emailView.setErrorMessage("That email is invalid.\nPlease try again.")
+                            let msg = NSLocalizedString("That email is invalid.\nPlease try again.", comment: "invalid email message")
+                            self.emailView.setErrorMessage(msg)
                         }
                         self.emailView.setState(state)
                         self.updateView()

    }

    private func setupViews() {
        usernameView.label.setLabelText("Username")
        usernameView.textField.text = currentUser?.username
        usernameView.textFieldDidChange = { text in
            self.valueChanged()

                    })
                } else {
                    self.emailView.setState(.Error)
                    let msg = NSLocalizedString("That email is invalid.\nPlease try again.", comment: "invalid email message")
                    self.emailView.setErrorMessage(msg)
                }
                self.updateView()
            }
        }

        passwordView.label.setLabelText(NSLocalizedString("Password", comment: "password key"))
        passwordView.textField.secureTextEntry = true
        passwordView.textFieldDidChange = { text in
            self.valueChanged()
