         passwordTextField.topAnchor.constraintEqualToAnchor(emailSeparatorView.bottomAnchor).active = true
         passwordTextField.widthAnchor.constraintEqualToAnchor(inputContainerView.widthAnchor).active = true
         passwordTextField.heightAnchor.constraintEqualToAnchor(inputContainerView.heightAnchor, multiplier: 1/3).active = true
-
     }
 
     func setupLoginRegisterButton() {

    func setupProfileImageView() {
        //need x, y, width, height constraings
        profileImageView.centerXAnchor.constraintEqualToAnchor(view.centerXAnchor).active = true
        profileImageView.bottomAnchor.constraintEqualToAnchor(inputContainerView.topAnchor, constant: -12).active = true
        profileImageView.widthAnchor.constraintEqualToConstant(150).active = true
        profileImageView.heightAnchor.constraintEqualToConstant(150).active = true
    }

    func handleRegister() {
        guard let email = emailTextField.text where email != "", let password = passwordTextField.text where password != "", let name = nameTextField.text where name != "" else {
            print("invalid email/pw")
            return
        }

        FIRAuth.auth()?.createUserWithEmail(email, password: password, completion: { (user, error) in

                    print("save login erro = \(err)")
                    return
                }
                self.emailTextField.resignFirstResponder()
                self.nameTextField.resignFirstResponder()
                self.passwordTextField.resignFirstResponder()
                self.dismissViewControllerAnimated(true, completion: nil)
            })

        })
    }
    private func errorAlertWithMessage(title: String, message: String) {
        let alert = UIAlertController(title: title, message: message, preferredStyle: .Alert)
        let ok = UIAlertAction(title: "Ok", style: .Cancel, handler: nil)
        alert.addAction(ok)
        presentViewController(alert, animated: true, completion: nil)
    }
    override func preferredStatusBarStyle() -> UIStatusBarStyle {
        return .LightContent
    }
