server changes for registration

registration setup
merge conflicts

changed the approach to access the request and response variables