Fixing some bugs and adding error checking for author profile pages.