registration input fields now saved when registration fails
added check and error message for empty fields