fixed some issues with authorization and added email marketing things