added login and authentication
John changes