Added redirect after register & login div now hides after logging in