Fixing small bugs

- remove redundand piece of code with Custom Locations
- change 'pass phrase' into 'passphrase'
- remove some JSHint warnings
- fix validation message