Make errors and warnings fatal
Fix export
Add missing import
Remove .done() in promise calls, make username an email