[fix for bug771894] made changes to test_edit_profile and forms.py