Adding a method to check some things that user have entered