Added warnings and session expire alert