switch encryption for log in