fix closing registration view controller