Bug fixes for the register activity.