adjusted code

moved auth check down to hide only dashboard link