add baseactivity and loginactivity