User duplication checking added