add login generic view and change pwd