Reworked login system to a single JSON object encyrpted with triplesec