connect login and home pages