Small code refactors
Adding a validate_inputs method to make sure form inputs aren't empty