How can I implement Condtional Statement to allow access to the form