adds registration

issues on validateregistration