Begin with login
Fix nil pointer in datastore