some tweaks for filtering registration input