fixed minor bug in register form