huge update - added registration, fixed anidub; updated encoding

huge update - added registration, fixed anidub; updated encoding
now we have 3-way encoding check.
todo: merge registration and user show_data