Added 2 methods to Form validation