They should be careful. Once they register the marriage here the Home Office are made aware and even if they don't detain him they will know he is around and could do so at anytime. Even if they marry here he cannot legalise his status unless he applies for spouse visa from outside the UK, in other ...