restricted access to database_update, broken login

added redirects for login success and failure. restricted access to
database_update.php. Login is not working correctly, login redirects to
database_update but says user is not logged in.
Merge remote-tracking branch 'origin/master'

Conflicts:
	home.php