fixed update.php

I patched the update.php and added a condition to check if the user is
logged in and not logged in based off the result it will display the
login form or not
Merge branch 'master' of https://github.com/travism26/my-firstwebsite