Register

Added the register function