register functionality added

Fixed register