authentication prototype
Fixed bug in data upload.