Closes #87; Fixing some bugs with user permissions in jsp files