Add back button functionality and user login tracking.