Fixed Minor Bug in Checking Registration Code