prevent crash on invalid data
missing return
acp - if bs env < lg + content is long (ex plugins list) then duplicate sidebar menu on header + footer; closes #2510
linting
partial fix to #2509
show validation errors on register
validate email password on register
removed global var
missing return