better error handling at registerstaff page
