Make sure the code you received is the code that is being entered here.  If you have requested several codes, then it is possible that you are not entering the latest one received.  Each time the code is sent, it invalidates any prior code sent to that device.  Ensure that you are entering the very latest code you received.