Added register function

Added register with mail-to function!