Make homepage and login page display properly