Fixed bugs in adding new user and editing card