code to add a scanner if not d=found in database
added validation in scanner post
fixed bug in creating new scanner