Required fields gives errors when auto-next page works