Created registration class and added a register method