added update in the API

also changed label for login in view