Removed redundancy in ERB form validation