fixing form checks