Added session validation functionality for top menu