Updated priviliges to contain buttons

added user type check in user class