add user and fixed bug