Used a conditional in nav bar instead of authmessage to fix the problems in styling