Added Functionality for Back Press (minimise App) and Logout.