Reverse how to handle POST requests on login page