made password generater functional on logic.