I,m glad it worked. However, ironically I found what maybe the real problem. For myself I changed the permissions of the home directory to 700, undid the alteration to custom.conf and now the problem is gone.
"chmod 700 /home/david"
Which maybe why it occurred in the first place!!