Fix login so that it works with salts, add some search capabilities