fixed error in register form