Fixes RP login errors.