Python User Input Error Handling In Express