fixing bug in disable submission button