loginactivity plus some interesting things