Error in User Edit form
You shouldn't be modifying any core files. Removing a declaration for a value that needs to be used elsewhere is causing your problem, and the solution is to make your changes using hooks and templates in custom modules and themes, which are Drupal's way of allowing users to modify behavior and output. 

This thread contains discussion of theming the user edit page, and has links to helpful information.