fix avatar upload at register