Changes redirect if not logged in