I can't registration

Hi:
Thanks for good software you make. I have a problem it shows “ authentication to asterisk failed check username and password"

I had put :

[user]
secret=password
permit=127.0.0.1/255.255.255.0
read=system,call,log,verbose,command,agent,user
write=system,call,log,verbose,command,agent,user
enabled=yes
port=5038

in manager_custom.conf
I don't know if these are right or not.

please show me how to do.

many thanks
KK