added check for no picture given in form