user duplicate checking working, fixing issue with undefined user with no input