Added password complex function