bug fix for messages nag
added session management to sign in with local storage