Fix bug in Register account