integration: login check

Got the code that forces a login to be valid to work. still
in progress on populating the homepage links based on role