Added course email and fixed auth

Actually sending emails is still to be done.