Why did you put a $1 in replacement for the actual Password though? The $1 is the identifier for the pass. If your pass stays the same, you can have it hard-coded as intended. The $1 should have been $$1 (with double dollar signs) so that it must be filled before the script will trigger. If you choose to have it with single dollar sign, you must make an if condition as in: if ($1) { or else the script will trigger if $1's value is not filled.