Not running

With any cycle, the cycle will run for 1-2 minutes and then flash code 50 on display and washer will stop and start beeping.