preventing submission without entering fields
i have created registration form as well as login form and i want them to prevent submission without entering fields means i want the user should enter fields and then he should be allowed access. How can i achieve this?