Fixes, beginning of login

scrypt fixes
json creation for login request