fixed email functionality and made it either add a friend or invite a friend