Added user and session authentication