Adding login encryption to the API