Added simple session with login function