Iza, your response was helpful. I am able to send anyone who enters to the other page (index.cfm) if they do not enter an office code. <br><br>The problem that I'm experiencing now is that when you type in any password on the entry screen it autmatically dumps you into the index.cfm page. It doesn't seem to be verifying against the database at that point.<br><br>the query is:<br><br><cfquery name="CheckRequired" datasource="user" dbtype="ODBC"><br>SELECT * <br>FROM Users<br>WHERE User='#Form.UserID#' <br>AND Pass='#Form.Password#'<br>AND Officecode='#form.OfficeCode#'<br></cfquery><br><br>and the variables User, Pass and Officecode should be passed from the form and queried against the database. It doesn't seem to be doing that. <br><br>The code I added that you gave me:<br><br><cfif CheckRequired.form><br><cfset session.authenticated=1><br><cflocation url="managers.cfm" addtoken="yes"><br><cfelse><br><cfset session.authenticated=1><br><cflocation url="index.cfm" addtoken="yes"><br></cfif><br><br>seems to be working but even if you don't enter a correct password you get into the index.cfm. Any ideas. I hate to be a pest, but as you can tell, I'm new to all of this and having a real hard time trying to figure out what is going wrong. Any help you could give would be greatly appreciated.<br><br><br>