added iOS login token creation (DB)