UI updated. Added validator for inputs. Fixed alert.