adding successful case for generating password via ajax