moved validation section