Logging in to the police database