Tried to write user part. Function which is called in case of success. Doesn't work.