A computer implemented method and computer program product for protecting a pre-filled user input field on a returned webpage from an accidental overwrite. The method identifies the pre-filled input field by detecting a mouseover. In response to a user command to change the state of the pre-filled input field, the method changes an initially unlocked pre-filled input field to a locked state or changes an initially locked pre-filled input field to an unlocked state.