Help connect to server

I have a jabber server I want to connect to but its not connecting.

This is what saetting I was told to use. any ideas.

ssl on

port 5223

servername

Username and password

Error message says invalid username or password however I have to log into my computer with the same username and password so I know they are correct.