Bug

save after registratioan
windows close after registration