Corrected two variable input to form validation