error messages more user friendly

Deleted deprecated functions and made form_set_error messages more detailed