implemented session managaement till chater 8.4
finished log in/out and remember