added rescue statements for modified exceptions
invalid format for first name exception class added
not null exception class added
modified exceptions, used appropriate exception classes
added rescue statements for modified exceptions and also added retry