fix edit/create user with non-ajax request