check pwd last, and only if / present