Fixed login fragment dismissal and listener nullpointer