Python Flask application to register users via a sign-up form