added homepage controller and login method for users