I have made an web application using JavaScript API containing basic View and editing capabilities.Now i want to add a user login form to access this application.I have to assign certain limitations for a group of members who can only view and some can edit the operational layer.please guide me.