Changed app key
Fixed login behavior + added logout