session to cookie

now storing data in cookie, fixed cookie bug
minory changes

removed unnecessary pieces of code in sign in/up and post models