add update user profile api and other minor fix