fix checks on valid username/page submissions and implement buttons