change redirect if registration details invalid