Revert "After login uploaded photo doesn't delete"

This reverts commit fff4c5fb2abbea6799853f2d0cf0e3ca31961ec4.
xx