Added terms of conditions. Fixed permissions logic.