fixed nil bug for no logged in user on the view account link