added login system; added particulary restricting of rights