Added support for sha encoded passwords