Added Admin area

Added settings.
Admin area to show logs and settings and future items
added access control on opening the gate.
prevented people manipulating the edit form