Now the required fields are getting checked!