Check if user is loged in before permitting uploaded files.