added the sidebar validation