placed login on profilefragment instead of loginactivity