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:
    login_response = {'error': True, 'msg': 'Thank You.'}
self.write(login_response)
Post to Tornado server