filled in doc.py and contact.py

Let's to use the existing "valid_user"