added valadation to catch error if the edittexts are left blank when button is pressed
tidied comments