Made LocalUser a singelton that extends User as well as fixed all errors that wer causes by the API vs Api constructors