Basic validation of passwords done