Logout Functionality and Preventing User from going back

Logout Functionality and Preventing User from going back