+1  A: 

Try:

If User IsNot Nothing AndAlso User.Identity IsNot Nothing AndAlso User.Identity.IsAuthenticated Then
    'Do stuff
End If
John Saunders
Thanks John. I fixed it with that exact same stuff just before you answered, however I used nested If statements instead of AndAlso. I think I'll change it to AndAlso for the clean factor. Thanks
rockinthesixstring