Fix guest_ok in POST and consolidate input validate. #515