update for register activity