Bug fix 4 in login code

Switched to save statements instead of update.