Custom input in edit profile page
Use Hook form alter and find the id of user edit form. Unset all extra fields but username and password. In templates it is not recommended to add php. If you want to disable or hide something its better to disable it from the render array. here is an example:

&lt;themnam&gt;_form_&lt;FORM_ID&gt;_alter($form, &amp;$form_state) {
 dpm($form);
 unset($form['your-field']);
}


I hope it helps