Logout functionality and splash screen