Fixed the author login check