move input setting after validation..