Fixing duplicate flash notices and auto sign in issue