update with login function in app
update with bug fixed in login and storage function