Close register modal after successful registration process