no duplicate users test added
login fn added