Add basic code to validate username and password