Fixed bad credentials exception