Changed order of arguments passed to function. Previous order caused
authentication error trying to use password as username and vice verca.