Added basic support for password credentials flow