implemented "createUser", "login" and "getPermissions" methods