Add tests for home page

Also add authorization check for login page

Change-Id: Id0d3b67da6f0bffe455d97ab8300b2cbeaf4c83a
Merge "Add tests for home page"