Added login functionality fragment

Added login functionality and fixed the main activity login/logout button