finally fixing register activity