fixed error for express session, fixed error for middleware that checks that only logged in user can make posts, added bcrypt to save a user