Got login and permissions working. Need to set perms correctly next