Adds form input validation