Changes done

1.Devide form fields into two hash. One is for empty validation and other
hash contains input fields other than first hash.
2. Removed length-2 from loop.