user registration flag better handled