fixes so email can be optional