restricting email button for logged in user