implemented forms that check if user input is valid