Fixed error caused by using improper function name in the registration email function