Added server side authentication and tidy up