Added an error checker for the constants
Fixed the missing url's in the email