Added encryption of passwords and base64 encoding