var dump instead of print_r and if debug show error message on
reset-pass