Finished Login APIs + model changes

Please review!