The code "dr" means the control doesn't see the door switch being closed.
This can mean the door catch is broken or the door is bent and not shutting all the way or clothes are preventing the door from shutting all the way but most likely it means the door lock assembly needs to be replaced.
Check the door strike is not broken and make sure the door is shutting evenly. If the door is shut fully and the "dr" error keeps occurring then replacing the lock assembly 131763245 will most likely fix this problem.
The switch can be obtained from the following link:
. Remember to unplug the washer first before attempting to change the switch.
The image below contains the instructions to access and change the latch. Changing the latch is easy the tough part is putting the spring back on. Sometimes it helps to have two extra hands when trying to reinstall the wire/spring.
I hope this information helps you resolve this problem but submit another question with any additional details for further assistance.