Modal in MyAppts almost working

It still regenerates itself even if the login succeeded.