Added limitations on username, passwords and agentnames. Now they cannot be empty or just whitespaces.