Added user sessions (partially at least) and an alert for unsessful login