added password prompting + function script