Updated the customer controller.

Added logic for salt and hash. Removed parameter passing and used private class variables instead.