changed route layout & added form validation