fix some bug for add and add the login model