if signed in user refreshes they are redirected to their page via Javascript