Learning mappings onto regularized latent spaces for biometric authentication