Implemented user database for validating credentials.