Edit api address.
Add login function.