made homepage and login pages functional