added log out and go back to index on incorrect password