Tidied code and fixed user edit functionality

Note:
Backend API needs to return user object as JSON on store and update
methods, and empty data on delete method.