user login view and edit function