Added operator password encryption.
started adding the login session.
used session_id checking.
refactored.