Also added tests for password validation. Change-Id: If30586c5e419871625e9d0c7389a14f40a559839 Closes-bug: #1589621