Added log in and save session state.
Login authentication works now