Changed required parameter login to username and working update code