completed login and home page