login and update functionality modified