Added mail and registration support to the auth module