Working login and all memory functions
Merge branch 'addresource'