working registration, authorization and password reset