Form validation and form clear fix