fixes for user or password == undefined