Put also finished

few changes done in PUT function and added a new function in login