added else in if condition (setTempManPass fucntion - globs.js)