Move input checks and add internal error locale key