injecting regex in register form