called add_user function twice

before i was calling the add_user function twice by accident. which causes to add the record twice to the database.