Added password authentication mechanism.