fixing the admin logout button and the progress bar for the date finished

updated code and logic behing the progress bar and it is updating.
worked on the logout button from admin login still working on it.