Added more input checks and loops continuously on required fields.