Add an upload sample.

1. add an upload sample.
2. changes to login sample.