Unknown bug in the code. Form not getting hidden, when the function to do the same is called