complete login activity and register activity