class LoginHandler(tornado.web.RequestHandler):

    def post(self):
        email_address = self.get_argument('email', '')
password = self.get_argument('password', '')
if not email_address:
    login_response = {'error': True, 'msg': 'Please enter your email address.'}
elif not password:
    login_response = {'error': True, 'msg': 'Please enter your password.'}
else:
    pass
Post to Tornado server