fixed image error and added error condition on name input