fixed logic error in home_page.js that caused infinite bounces between /login and /homepage once isUserOnline was fixed. Also fixed isUserOnline; it was returning false every time before.