refactor register test and input filter for register form
now allow registration