implemented most of the login logic, created new servedJS and crypto things to facilitate security and
partitioning of user access