replaced sample with login