Multiple edits

Added a way to stop duplicate users, fixed loop issue,