register form bug fix