test works. now need to fix login fail nil sesison problem by passing tests