validate

fun validate(expectedUser: String, expectedPass: String, realm: String = "Realm"): Boolean