Owncloud Agent query

I’m facing an issue with the OwnCloud client agent. When the system shuts down or restarts, the OwnCloud agent does not start syncing automatically until I open the agent and enter my password.