Fixes of UI auth and reg