clean and add user in DB when logged