Fixed bug for email link - it was stopping the page redirecting to sign in