Fixed issue with webapi role and fixed email template location