working on cookie checking and sign in and sign up