Added validation functionality.
Worked on new Form class.