fixed up testing and created sign_in and sign_out function