Added client side logging in and logging out code, still buggy though; client window doesn't change