Added support for sha1 passwords