Added template for user register function