def post(self):
        username = self.get_argument("username",None)
        password = self.get_argument("password",None)
        
        if not username or not password:
            # do something
            self.flash.error = "You must enter a username and password to proceed. Please try again."
            self.redirect("/signup")
            return
        
        if password != self.get_argument("password2", None) :
            self.flash.error = "Passwords do not match. Please try again."
            self.redirect("/signup")
            return
        
        user = User.instance(username, password)
        Mongo.db.ui.users.insert(user)
        self.flash.info = "Successfully created your account, please log in."
        self.redirect("/login")
dataset/ETHPy150Open trendrr/whirlwind/whirlwind/conf/app_template/application/controllers/account_controller.py/SignupHandler.post/original