fixes issue where user is always taken to login upon landing