Perfected authentication system. Added error checking and timeouts to post downloading.