fixing small errors in aj-auth