added automatic pw generate