Adds simple validation, redirection, and alert_message partial.