finish the function showing the error user name or password failed