added error flash and error handling in routes for POST