added some initial works to handle user credentials using encryption, not completed yet