edited login example