bug in registration process