creating abstract activity class to reduce code redundancy
converted login activity to use fragment