if (isset($input['avatar_file']) && file_exists($input['avatar_file']))
            {
                LOG::info('saving file . . .');
                $uploadDir = 'avatar/';
                $filename = time() . '.jpg';
                move_uploaded_file($input['avatar_file'], UPLOAD_PATH .
$uploadDir . $filename);
                $input['avatar_path'] = $uploadDir . $filename;
                unset($input['avatar_file']);
            }