User automatically logged out

I have a strange situation. I was changing some settings in Portal settings to customize the page.
Later I noticed a strange behavior. Apparantly, when I visit erp.example.com/me portal page opens up good but this happens:

  1. user logo at top right disappears
  2. the user is also logged out. When I enter the url erp.example.com it asks for login again.

Another problem:

  1. When I login with a supplier credentials, the portal stays in login page with url https://erp.example.com/login#login
  2. Manually entering /home url after login shows a proper page. https://erp.example.com/home
  3. Visiting https://erp.example.com/me logouts user. Doesnot show any page. Just this: