Move AuthenticateUser from foundation contract.

Signed-off-by: crynobone <crynobone@gmail.com>