why do you have both print_error AND print_success functions ? And why do they look like a copy-paste to me ?